package com.mall.enums;

import lombok.Data;
import lombok.Setter;

/**
 * 角色0-管理员 1-普通用户
 *
 * @Author: 黄建
 * @Date: 2020/1/19 22:27
 */
public enum RoleEnum {

    ADMIN(0),

    CUSTOMER(1);

    Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    RoleEnum(Integer code) {
        this.code = code;
    }
}
